<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table>
    <th>编号</th>
    <th>名字</th>
    <th>健康</th>
    <th>亲密度</th>
    <th>品种</th>
<!--    对thymeleaf的应用,th:text 感觉修改了标签的value值-->
    <tr th:each="dog : ${dog}">
        <td th:text="${dog.id}"></td>
        <td th:text="${dog.name}"></td>
        <td th:text="${dog.health}"></td>
        <td th:text="${dog.love}"></td>
        <td th:text="${dog.strain}"></td>
    </tr>
</table>
</body>
</html>